package com.tonicgb.shared.common.constants;
/**
 * @author zhaiyujin
 * @date 2021-09-06 23:47:46
 * @说明 常量定义
 */
public class Constants {

    //头部 token令牌key
    public static final String HEADER_AUTHORIZATION_KEY = "Authorization";
    public static final Integer TOKEN_EXPRESS_MINUTES = (60*1); //1小时
    public static final String BCRYPT_SALT_KEY="zhaiyujin"; //bcrypt盐值
    public static final  int DEFAULT_PAGE=1; //分页
    public static final  int DEFAULT_LIMIT=15; //每页数据

    //第三方登录token类型
    public static final int THIRD_LOGIN_TOKEN_TYPE_PUBLIC  = 1; //公众号
    public static final int THIRD_LOGIN_TOKEN_TYPE_PROGRAM  = 2; //小程序
    public static final int THIRD_LOGIN_TOKEN_TYPE_UNION_ID  = 3; //unionid
    public static final int THIRD_ADMIN_LOGIN_TOKEN_TYPE_PUBLIC  = 4; //后台登录公众号


    //用户登录方式
    public static final String USER_LOGIN_TYPE_H5 = "h5";
    public static final String USER_LOGIN_TYPE_PUBLIC = "wechat";
    public static final String USER_LOGIN_TYPE_PROGRAM = "routine";

}
